import request from "@/utils/request";


export function getStationList(query) {
    return request({
        url: '/device/station/list',
        method: 'get',
        params: query,
    })
}

export function getStationDetail(id) {
    return request({
        url: '/device/station/' + id,
        method: 'get'
    }) 
}

export function addStation(data) {
    return request({
        url: '/device/station',
        method: 'post',
        data: data
    }) 
}

export function updateStation(data) {
    return request({
        url: '/device/station',
        method: 'put',
        data: data
    }) 
}


export function deleteStation(id) {
    return request({
        url: '/device/station/' + id,
        method: 'delete' 
    }) 
}

//站点设置关联数据
export function setData(data){
    return request({
        url: '/device/setData',
        method: 'post',
        data: data
    }) 
}
